package com.fxm.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.io.Serializable;
import java.util.List;

/**
 * @author fxm
 * @version V1.0.0
 * @description: 题目表
 * @date 2021/02/04 15:06
 */
@Data
@TableName("answer_question")
@Builder
public class Question implements Serializable {
    /**
     * 题目ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 题目名称
     */
    private String questionTitle;
    /**
     * 题目类别
     */
    private String questionType;
    /**
     * 题目答案
     */
    private String questionAnswer;
    /**
     * 积分值
     */
    private Integer integralValue;
    /**
     * 删除标记：0=正常;1=已删除
     */
    private Integer deleted;
    /**
     * 该题目下的所有选项
     */
    @TableField(exist = false)
    private List<Option> optionList;

    @Tolerate
    public Question () {}
}
